import {request} from 'umi'
interface SearchDataType {
  [propsName:string]:string;
}

export function getConfigList(payload:any,size=10){
  let t = new Date().getTime();  
   return request(`/sys/config/page?t=${t}&current=${payload}&size=${size}`)
}

export function getConfigSearchList(params:SearchDataType){
  console.log(params,'params...');
  let t = new Date().getTime();    
  return request(`/sys/config/page`,{
    method:"GET",
    params: { t, current: 1, size:10, paramKey:params.paramKey}
  })
}